|
|
| Расположение в меню |
|---|
| Draft → Split |
| Верстаки |
| Draft |
| Быстрые клавиши |
| S P |
| Представлено в версии |
| 0.18 |
| См. также |
| Draft Join |
The Draft Split command splits a Draft Line or Draft Wire at a specified point or edge. This command is the counterpart of the Draft Join command.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To split a wire use the split method of the Draft module. This method returns None.
split(wire, newPoint, edgeIndex)
wire the wire object to be split.newPoint the point where the split should occur.edgeIndex index of the edge where the split should occur (1-based).Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(500, 0, 0)
p3 = App.Vector(250, 0, 0)
wire = Draft.make_wire([p1, p2])
Draft.split(wire, p3, 1)
doc.recompute()